home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
burglr
/
burglar.frm
< prev
next >
Wrap
Text File
|
1995-05-08
|
2KB
|
64 lines
VERSION 2.00
Begin Form Form1
BackColor = &H00808080&
BorderStyle = 0 'None
Caption = "Form1"
ClientHeight = 645
ClientLeft = 5955
ClientTop = 1485
ClientWidth = 1410
ControlBox = 0 'False
Height = 1050
Icon = BURGLAR.FRX:0000
Left = 5895
LinkMode = 1 'Source
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 645
ScaleWidth = 1410
Top = 1140
Width = 1530
Begin Timer Timer1
Interval = 2500
Left = 600
Top = 0
End
Begin PictureBox Picture1
Height = 495
Left = 0
ScaleHeight = 465
ScaleWidth = 465
TabIndex = 0
Top = 0
Width = 495
End
End
Sub form_load ()
Randomize Timer
picture1.picture = LoadPicture("burglar.ico")
form1.width = picture1.width
form1.height = picture1.height
form1.top = (Rnd * screen.height + 1) - form1.height
form1.left = (Rnd * screen.width + 1) - form1.width
End Sub
Sub Picture1_Click ()
Unload form1
End
End Sub
Sub Timer1_Timer ()
form1.visible = 0
delay = (Rnd * 5000) + 1
For y = 1 To delay
x = DoEvents()
Next y
x = DoEvents()
form_load
x = DoEvents()
form1.visible = -1
x = DoEvents()
End Sub